<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>菩提阁</title>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="css/base.css" />
    <link rel="stylesheet" href="css/pages/address.css" />
    <link rel="stylesheet" href="font/iconfont.css" />
    <link rel="stylesheet" href="./lib/layui/css/layui.mobile.css">
</head>

<body>
    <div id="address" class="app">
        <div class="divHead">
            <div class="divTitle">
                <i class="iconfont icon-arrow-left"></i>地址管理
            </div>
        </div>
        <div class="divContent">
            <div class="divItem">
                <div class="divAddress">
                    <span class="spanCompany">公司</span> 黑马程序员4楼
                </div>
                <div class="divUserPhone">
                    <span>李四</span> <span>先生</span>
                    <span>18868816185</span>
                </div>
                <img src="./images/edit.png" class="img_hlq_edit" />
                <div class="divSplit"></div>
                <div class="divDefault">
                    <img src="./images/checked_true.png" />设为默认地址
                </div>
            </div>
        </div>
        <div class="divBottom">+ 添加收货地址</div>
    </div>
    <script src="./lib/template-web.js"></script>
    <script type="text/html" id="hlq_address">
        {{each data}}
        <div class="divItem">
            <div class="divAddress">
                <span class={{$value.label|getColor}}>{{$value.label}}</span> {{$value.detail}}
            </div>
            <div class="divUserPhone">
                <span>{{$value.consignee}}</span> <span>{{$value.sex | dateFormat }}</span>
                <span>{{$value.phone}}</span>
            </div>
            <img src="./images/edit.png" class="r" data-id="{{$value.id}} " />
            <div class=" divSplit "></div>
            <div class="divDefault ">
                <img src={{$value.isDefault|getCheck}} data-id="{{$value.id}} " />设为默认地址
            </div>
        </div>
        {{/each}}
    </script>
    <script src=" ./lib/jquery.js "></script>
    <script src="./lib/layui/layui.all.js "></script>
    <script src="./address.js "></script>
</body>

</html>